package cn.jjxx.modules.sbfb.entity;

import cn.jjxx.core.common.entity.AbstractEntity;
import cn.jjxx.core.utils.security.BASE64Decoder;
import cn.jjxx.core.utils.security.BASE64Encoder;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.mysql.jdbc.Blob;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;

import org.apache.http.client.utils.URLEncodedUtils;
import org.framework.customutil.endecryption.base64.BASE64Helper;
import org.framework.superutil.thirdparty.excel.Excel;

import java.net.URLEncoder;
import java.util.Date;

/**   
 * @Title: 项目图片信息
 * @Description: 项目图片信息
 * @author yw
 * @date 2022-02-17 11:28:07
 * @version V1.0   
 *
 */
@TableName("t_ec_projectpic")
@SuppressWarnings("serial")
public class TEcProjectpic extends AbstractEntity<String> {

    /**项目id*/
    @Excel(name="项目id")
    @TableField(value = "FBillID")
	private String fbillid;
    /**二进制文件*/
    @Excel(name="二进制文件")
    @TableField(value = "FFile")
	private byte[] ffile;
    /**文件名带后缀*/
    @Excel(name="文件名带后缀")
    @TableField(value = "FFileName")
	private String ffilename;
    /**文件名*/
    @Excel(name="文件名")
    @TableField(value = "FName")
	private String fname;
    /**上传时间*/
    @Excel(name="上传时间")
    @TableField(value = "FUploadDate")
	private Date fuploaddate;
    /**描述*/
    @Excel(name="描述")
    @TableField(value = "FDescription")
	private String fdescription;
    /**单据分录序列号*/
    @Excel(name="单据分录序列号")
    @TableField(value = "FSeq")
	private Integer fseq;
    /**主键*/
    @Excel(name="主键")
    @TableField(value = "ID")
	private String id;

    @TableField(exist = false)
	private String strFile;
	
	/**
	 * 获取  fbillid
	 *@return: String  项目id
	 */
	public String getFbillid(){
		return this.fbillid;
	}

	/**
	 * 设置  fbillid
	 *@param: fbillid  项目id
	 */
	public void setFbillid(String fbillid){
		this.fbillid = fbillid;
	}

	/**
	 * 获取  ffilename
	 *@return: String  文件名带后缀
	 */
	public String getFfilename(){
		return this.ffilename;
	}

	/**
	 * 设置  ffilename
	 *@param: ffilename  文件名带后缀
	 */
	public void setFfilename(String ffilename){
		this.ffilename = ffilename;
	}
	/**
	 * 获取  fname
	 *@return: String  文件名
	 */
	public String getFname(){
		return this.fname;
	}

	/**
	 * 设置  fname
	 *@param: fname  文件名
	 */
	public void setFname(String fname){
		this.fname = fname;
	}
	/**
	 * 获取  fuploaddate
	 *@return: Date  上传时间
	 */
	public Date getFuploaddate(){
		return this.fuploaddate;
	}

	/**
	 * 设置  fuploaddate
	 *@param: fuploaddate  上传时间
	 */
	public void setFuploaddate(Date fuploaddate){
		this.fuploaddate = fuploaddate;
	}
	/**
	 * 获取  fdescription
	 *@return: String  描述
	 */
	public String getFdescription(){
		return this.fdescription;
	}

	/**
	 * 设置  fdescription
	 *@param: fdescription  描述
	 */
	public void setFdescription(String fdescription){
		this.fdescription = fdescription;
	}
	/**
	 * 获取  fseq
	 *@return: Integer  单据分录序列号
	 */
	public Integer getFseq(){
		return this.fseq;
	}

	/**
	 * 设置  fseq
	 *@param: fseq  单据分录序列号
	 */
	public void setFseq(Integer fseq){
		this.fseq = fseq;
	}
	/**
	 * 获取  id
	 *@return: String  主键
	 */
	public String getId(){
		return this.id;
	}

	/**
	 * 设置  id
	 *@param: id  主键
	 */
	public void setId(String id){
		this.id = id;
	}

	public byte[] getFfile() {
		return ffile;
	}

	public void setFfile(byte[] ffile) {
		this.ffile = ffile;
	}

	public String getStrFile() {
		if(null!=ffile) {
			BASE64Encoder coder = new BASE64Encoder();
			strFile = coder.encode(ffile);
		}
		return strFile;
	}

	public void setStrFile(String strFile) {
		this.strFile = strFile;
	}
	
}
